<template>
  <el-container>
    <el-header>
      <Header />
    </el-header>
    <el-main>
      <el-row :gutter="20">
        <el-col :xs="24" :sm="12" :md="9">
          <PaymentInfo />
          <MarginInfo />
        </el-col>
        <el-col :xs="24" :sm="12" :md="9">
          <ExecutionOrders />
          <BankStorageRatio />
        </el-col>
        <el-col :xs="24" :md="6">
          <CollectionInfo />
        </el-col>
      </el-row>
    </el-main>
  </el-container>
</template>

<script>
import Header from './components/Header.vue';
import PaymentInfo from './components/PaymentInfo.vue';
import ExecutionOrders from './components/ExecutionOrders.vue';
import CollectionInfo from './components/CollectionInfo.vue';
import MarginInfo from './components/MarginInfo.vue';
import BankStorageRatio from './components/BankStorageRatio.vue';

export default {
  name: 'App',
  components: {
    Header,
    PaymentInfo,
    ExecutionOrders,
    CollectionInfo,
    MarginInfo,
    BankStorageRatio
  }
};
</script>

<style>
body {
  background-image: url('./assets/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  margin: 0;
}

.el-container, .el-header, .el-main {
  background-color: transparent;
}

.custom-card {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid white;
  min-height: 300px;
  width: 100%;
  text-align: center;
}

.title {
  margin-top: 0;
  margin-bottom: 20px;
}

.collection-info, .bank-storage-ratio, .execution-orders, .margin-info, .payment-info {
  margin-bottom: 20px;
  padding: 0 10px;
}

.payment-list, .collection-list, ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
}

.headers {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 10px;
}

.header {
  flex: 1;
  text-align: center;
  font-weight: bold;
}

li {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.order-name, .order-count {
  flex: 1;
  text-align: center;
}

.header .current-time {
  position: absolute;
  left: 0;
}

.header .title {
  margin: 0 auto;
}
</style>
